﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;

using XCode;
using BingZi.HY.Core;
using XCode.Configuration;
using XCode.DataAccessLayer;

namespace BingZi.HY.Core
{
    /// <summary>系统信息表</summary>
    [Serializable]
    [DataObject]
    [Description("系统信息表")]
    [BindIndex("PK_SYS_SYSTEMINFO", true, "SystemID")]
    [BindTable("sys_SystemInfo", Description = "系统信息表", ConnName = "System")]
    public partial class sys_SystemInfo<TEntity> : Isys_SystemInfo
    {
        #region 属性
        private Int32 _SystemID = 0;
        /// <summary>自动ID</summary>
        [DisplayName("自动ID")]
        [Description("自动ID")]
        [DataObjectField(true, true, false, 10)]
        [BindColumn(1, "SystemID", "自动ID", null, "int", 10, 0, false)]
        public Int32 SystemID
        {
            get { return _SystemID; }
            set { if (OnPropertyChanging("SystemID", value)) { _SystemID = value; OnPropertyChanged("SystemID"); } }
        }

 

        private String _S_Version;
        /// <summary>版本号</summary>
        [DisplayName("版本号")]
        [Description("版本号")]
        [DataObjectField(false, false, true, 50)]
        [BindColumn(3, "S_Version", "版本号", "v1.0.0", "nvarchar(50)", 0, 0, true)]
        public String S_Version
        {
            get { return _S_Version; }
            set { if (OnPropertyChanging("S_Version", value)) { _S_Version = value; OnPropertyChanged("S_Version"); } }
        }

      


 

        #region "Private Variables"
        private int _C_UpImgHeight = 120;
        private int _C_UpImgWidth = 180;
        private string _C_UploadPath = "Includes/FileUpLoad/";
        private int _C_UploadSizeKb = 1024;
        private string _C_UploadFileExt = "zip,rar,doc,jpg,png,gif,bmp,swf";
        private Boolean _C_RequestLog = false;
        private string _C_IPLookUrl = "http://www.yahoo.cn/s?p={0}";
        private int _C_LoginErrorDisableMinute = 60;
        private int _C_LoginErrorMaxNum = 20;
        private Boolean _C_HttpGZip = false;
        private string _C_DisableIp = "";
        private List<string> _C_DisableIpList = new List<string>();
        private Boolean _C_Enable_Ldap = false;
        private string _C_Ldap_Path = "LDAP://xxx.com.cn/DC=xxx,DC=com,DC=cn"; //LDAP://xxx.com.cn/DC=xxx,DC=com,DC=cn
        private string _C_Ldap_Domain = "xxx.com.cn"; //xxx.com.cn
        #endregion

        #region "Public Variables"

        /// <summary>
        /// 是否启用域认证
        /// </summary>
        [DisplayName("是否启用域认证")]
        [Description("是否启用域认证")]
        [DataObjectField(false, false, true, 1)]
        [BindColumn(6, "C_Enable_Ldap", "是否启用域认证", "false", "bit", 0, 0, false)]
        public Boolean C_Enable_Ldap
        {
            get
            {
                return _C_Enable_Ldap;
            }
            set
            {
                if (OnPropertyChanging("C_Enable_Ldap", value)) { _C_Enable_Ldap = value; OnPropertyChanged("C_Enable_Ldap"); }
            }
        }
        /// <summary>
        /// 域路径
        /// </summary>
        [DisplayName("域路径")]
        [Description("域路径")]
        [DataObjectField(false, false, true, 50)]
        [BindColumn(7, "C_Ldap_Path", "域路径", "LDAP://xxx.com.cn/DC=xxx,DC=com,DC=cn", "varchar(50)", 0, 0, false)]
        public string C_Ldap_Path
        {
            get
            {
                return _C_Ldap_Path;
            }
            set
            {
                if (OnPropertyChanging("C_Ldap_Path", value)) { _C_Ldap_Path = value; OnPropertyChanged("C_Ldap_Path"); }
            }
        }

        /// <summary>
        /// 认证域
        /// </summary>
        [DisplayName("认证域")]
        [Description("认证域")]
        [DataObjectField(false, false, true, 20)]
        [BindColumn(8, "C_Ldap_Domain", "认证域", "xxx.com.cn", "varchar(20)", 20, 0, false)]
        public string C_Ldap_Domain
        {
            get
            {
                return _C_Ldap_Domain;
            }
            set
            {
                if (OnPropertyChanging("C_Ldap_Domain", value)) { _C_Ldap_Domain = value; OnPropertyChanged("C_Ldap_Domain"); }
            }
        }
        /// <summary>
        /// 禁止登入IP列表(每行一个IP,IP地址段以192.168.1.1-255)
        /// </summary>
        [DisplayName("禁止登入IP列表(每行一个IP,IP地址段以192.168.1.1-255)")]
        [Description("禁止登入IP列表(每行一个IP,IP地址段以192.168.1.1-255)")]
        [DataObjectField(false, false, true, 50)]
        [BindColumn(9, "C_DisableIp", "禁止登入IP列表(每行一个IP,IP地址段以192.168.1.1-255)", null, "ntext", 0, 0, false)]
        public string C_DisableIp
        {
            get
            {
                return _C_DisableIp;
            }
            set
            {
                if (OnPropertyChanging("C_DisableIp", value)) { _C_DisableIp = value; OnPropertyChanged("C_DisableIp"); }
                Set_C_DisableIp_List(value);
            }
        }

        /// <summary>
        /// 禁止登录IP列表
        /// </summary>
        public List<string> C_DisableIpList
        {
            get
            {
                return _C_DisableIpList;
            }
        }
 

 
        /// <summary>
        /// 是否允许GZip压缩输出网页
        /// </summary>
        [DisplayName("是否允许GZip压缩输出网页")]
        [Description("是否允许GZip压缩输出网页")]
        [DataObjectField(false, false, true, 1)]
        [BindColumn(10, "C_HttpGZip", "是否允许GZip压缩输出网页", "false", "bit", 0, 0, false)]
        public Boolean C_HttpGZip
        {
            get
            {
                return _C_HttpGZip;
            }

            set
            {
                if (OnPropertyChanging("C_HttpGZip", value)) { _C_HttpGZip = value; OnPropertyChanged("C_HttpGZip"); }
            }
        }

        /// <summary>
        /// 同一IP同一帐号登入出错,禁止登入时间(默认60)分,设定此值需要重启动应用程序
        /// </summary>
        [DisplayName("同一IP同一帐号登入出错,禁止登入时间(默认60)分,设定此值需要重启动应用程序")]
        [Description("同一IP同一帐号登入出错,禁止登入时间(默认60)分,设定此值需要重启动应用程序")]
        [DataObjectField(false, false, true, 10)]
        [BindColumn(11, "C_LoginErrorDisableMinute", "同一IP同一帐号登入出错,禁止登入时间(默认60)分,设定此值需要重启动应用程序", "60", "int", 10, 0, false)]
        public int C_LoginErrorDisableMinute
        {
            get
            {
                return _C_LoginErrorDisableMinute;
            }
            set
            {
                if (OnPropertyChanging("C_LoginErrorDisableMinute", value)) { _C_LoginErrorDisableMinute = value; OnPropertyChanged("C_LoginErrorDisableMinute"); }
            }
        }
        /// <summary>
        /// 同一IP登入允许出错次数默认为20
        /// </summary>
        [DisplayName("同一IP登入允许出错次数默认为20")]
        [Description("同一IP登入允许出错次数默认为20")]
        [DataObjectField(false, false, true, 10)]
        [BindColumn(12, "C_LoginErrorMaxNum", "序列号", "20", "int", 10, 0, false)]
        public int C_LoginErrorMaxNum
        {
            get
            {
                return _C_LoginErrorMaxNum;
            }
            set
            {
                if (OnPropertyChanging("C_LoginErrorMaxNum", value)) { _C_LoginErrorMaxNum = value; OnPropertyChanged("C_LoginErrorMaxNum"); }
            }
        }

        /// <summary>
        /// 上传文件扩展名 多个以,号分开
        /// </summary>
        [DisplayName("上传文件扩展名 多个以,号分开")]
        [Description("上传文件扩展名 多个以,号分开")]
        [DataObjectField(false, false, true, 200)]
        [BindColumn(13, "C_UploadFileExt", "上传文件扩展名 多个以,号分开", "zip,rar,doc,jpg,png,gif,bmp,swf", "varchar(200)", 200, 0, false)]
        public string C_UploadFileExt
        {
            get
            {
                return _C_UploadFileExt;
            }
            set
            {
                if (OnPropertyChanging("C_UploadFileExt", value)) { _C_UploadFileExt = value; OnPropertyChanged("C_UploadFileExt"); }
            }
        }

        /// <summary>
        /// 上传文件大小(Kb为单位)
        /// </summary>
        [DisplayName("上传文件大小(Kb为单位)")]
        [Description("上传文件大小(Kb为单位)")]
        [DataObjectField(false, false, true, 10)]
        [BindColumn(14, "C_UploadSizeKb", "上传文件大小(Kb为单位)", "1024", "int", 10, 0, false)]
        public int C_UploadSizeKb
        {
            get
            {
                return _C_UploadSizeKb;
            }
            set
            {
                if (OnPropertyChanging("C_UploadSizeKb", value)) { _C_UploadSizeKb = value; OnPropertyChanged("C_UploadSizeKb"); }
            }
        }

        /// <summary>
        /// 上传文件路径
        /// </summary>
        [DisplayName("上传文件路径")]
        [Description("上传文件路径")]
        [DataObjectField(false, false, true, 200)]
        [BindColumn(15, "C_UploadPath", "上传文件路径", "/Includes/FileUpLoad/", "varchar(200)", 200, 0, false)]
        public string C_UploadPath
        {
            get
            {
                return _C_UploadPath;
            }
            set
            {
                if (OnPropertyChanging("C_UploadPath", value)) { _C_UploadPath = value; OnPropertyChanged("C_UploadPath"); }
            }
        }

        /// <summary>
        /// 上传图片缩图高度 默认120
        /// </summary>
        [DisplayName("上传图片缩图高度 默认120")]
        [Description("上传图片缩图高度 默认120")]
        [DataObjectField(false, false, true, 10)]
        [BindColumn(16, "C_UpImgHeight", "上传图片缩图高度 默认120", "120", "int", 10, 0, false)]
        public int C_UpImgHeight
        {
            get
            {
                return _C_UpImgHeight;
            }
            set
            {
                if (OnPropertyChanging("C_UpImgHeight", value)) { _C_UpImgHeight = value; OnPropertyChanged("C_UpImgHeight"); }
            }
        }

        /// <summary>
        /// 上传图片缩图宽度 默认 180
        /// </summary>
        [DisplayName("上传图片缩图宽度 默认 180")]
        [Description("上传图片缩图宽度 默认 180")]
        [DataObjectField(false, false, true, 10)]
        [BindColumn(17, "C_UpImgWidth", "上传图片缩图宽度 默认 180", "180", "int", 10, 0, false)]
        public int C_UpImgWidth
        {
            get
            {
                return _C_UpImgWidth;
            }
            set
            {
                if (OnPropertyChanging("C_UpImgWidth", value)) { _C_UpImgWidth = value; OnPropertyChanged("C_UpImgWidth"); }
            }
        }

        /// <summary>
        /// 是否启用户访问日志 默认为false
        /// </summary>
        [DisplayName("是否启用户访问日志 默认为false")]
        [Description("是否启用户访问日志 默认为false")]
        [DataObjectField(false, false, true, 1)]
        [BindColumn(18, "C_RequestLog", "是否启用户访问日志 默认为false", "false", "bit", 0, 0, false)]
        public Boolean C_RequestLog
        {
            get
            {
                return _C_RequestLog;
            }
            set
            {
                if (OnPropertyChanging("C_RequestLog", value)) { _C_RequestLog = value; OnPropertyChanged("C_RequestLog"); }
            }
        }

        /// <summary>
        /// IP地址查询链接
        /// </summary>
        [DisplayName("IP地址查询链接")]
        [Description("IP地址查询链接")]
        [DataObjectField(false, false, true, 50)]
        [BindColumn(19, "C_IPLookUrl", "IP地址查询链接", "http://www.yahoo.cn/s?p={0}", "varchar(50)", 0, 0, false)]
        public string C_IPLookUrl
        {
            get
            {
                return _C_IPLookUrl;
            }
            set
            {
                if (OnPropertyChanging("C_IPLookUrl", value)) { _C_IPLookUrl = value; OnPropertyChanged("C_IPLookUrl"); }
            }
        }
        #endregion

        #region "扩展属性"


        private String _Site_Title = String.Empty;
        /// <summary>
        /// 网站标题
        /// </summary>
        [DisplayName("网站标题")]
        [Description("网站标题")]
        [DataObjectField(false, false, true, 200)]
        [BindColumn(20, "Site_Title", "网站标题", "", "varchar(200)", 200, 0, false)]
        public string Site_Title
        {
            get
            {
                return _Site_Title;
            }
            set
            {
                if (OnPropertyChanging("Site_Title", value)) { _Site_Title = value; OnPropertyChanged("Site_Title"); }
            }
        }




        private String _Site_MetaKeywords = String.Empty;
        /// <summary>
        /// 网站关键字
        /// </summary>
        [DisplayName("网站关键字")]
        [Description("网站关键字")]
        [DataObjectField(false, false, true, 512)]
        [BindColumn(21, "Site_MetaKeywords", "网站关键字", "", "varchar(512)", 512, 0, false)]
        public string Site_MetaKeywords
        {
            get
            {
                return _Site_MetaKeywords;
            }
            set
            {
                if (OnPropertyChanging("Site_MetaKeywords", value)) { _Site_MetaKeywords = value; OnPropertyChanged("Site_MetaKeywords"); }
            }
        }




        private String _Site_MetaDescription = String.Empty;
        /// <summary>
        /// 网站描述
        /// </summary>
        [DisplayName("网站描述")]
        [Description("网站描述")]
        [DataObjectField(false, false, true, 512)]
        [BindColumn(22, "Site_MetaDescription", "网站描述", "", "varchar(512)", 200, 0, false)]
        public string Site_MetaDescription
        {
            get
            {
                return _Site_MetaDescription;
            }
            set
            {
                if (OnPropertyChanging("Site_MetaDescription", value)) { _Site_MetaDescription = value; OnPropertyChanged("Site_MetaDescription"); }
            }
        }



        private String _Site_Copyright = String.Empty;
        /// <summary>
        /// 网站版权信息
        /// </summary>
        [DisplayName("网站标题")]
        [Description("网站标题")]
        [DataObjectField(false, false, true, 512)]
        [BindColumn(23, "Site_Copyright", "网站标题", "", "varchar(512)", 512, 0, false)]
        public string Site_Copyright
        {
            get
            {
                return _Site_Copyright;
            }
            set
            {
                if (OnPropertyChanging("Site_Copyright", value)) { _Site_Copyright = value; OnPropertyChanged("Site_Copyright"); }
            }
        }


        private String _Site_Suffix = String.Empty;
        /// <summary>
        /// 网站页面后缀
        /// </summary>
        [DisplayName("网站页面后缀")]
        [Description("网站页面后缀")]
        [DataObjectField(false, false, true, 10)]
        [BindColumn(24, "Site_Suffix", "网站页面后缀", "", "varchar(10)", 10, 0, false)]
        public string Site_Suffix
        {
            get
            {
                return _Site_Suffix;
            }
            set
            {
                if (OnPropertyChanging("Site_Suffix", value)) { _Site_Suffix = value; OnPropertyChanged("Site_Suffix"); }
            }
        }

        private Int32 _Template_CacheTime = 600;
        /// <summary>
        /// 模版缓存时间
        /// </summary>
        [DisplayName("模版缓存时间")]
        [Description("模版缓存时间")]
        [DataObjectField(false, false, true, 10)]
        [BindColumn(25, "Template_CacheTime", "模版缓存时间", "", "int", 10, 0, false)]
        public Int32 Template_CacheTime
        {
            get
            {
                return _Template_CacheTime;
            }
            set
            {
                if (OnPropertyChanging("Template_CacheTime", value)) { _Template_CacheTime = value; OnPropertyChanged("Template_CacheTime"); }
            }
        }

        private Boolean _Template_CacheEnable = false;
        /// <summary>
        /// 是否开启模版缓存 默认关闭false
        /// </summary>
        [DisplayName("是否开启模版缓存 默认关闭false")]
        [Description("是否开启模版缓存 默认关闭false")]
        [DataObjectField(false, false, true, 1)]
        [BindColumn(26, "Template_CacheEnable", "是否开启模版缓存 默认关闭false", "false", "bit", 0, 0, false)]
        public Boolean Template_CacheEnable
        {
            get
            {
                return _Template_CacheEnable;
            }
            set
            {
                if (OnPropertyChanging("Template_CacheEnable", value)) { _Template_CacheEnable = value; OnPropertyChanged("Template_CacheEnable"); }
            }
        }





        #endregion


        private sys_BingZiInfoTable _S_BingZiInfo = new sys_BingZiInfoTable();

        /// <summary>
        /// 系统版本信息
        /// </summary>
        public sys_BingZiInfoTable S_BingZiInfo
        {
            get
            {
                return _S_BingZiInfo;
            }
            set
            {
                _S_BingZiInfo = value;
            }
        }



        #endregion

        #region 获取/设置 字段值
        /// <summary>
        /// 获取/设置 字段值。
        /// 一个索引，基类使用反射实现。
        /// 派生实体类可重写该索引，以避免反射带来的性能损耗
        /// </summary>
        /// <param name="name">字段名</param>
        /// <returns></returns>
        public override Object this[String name]
        {
            get
            {
                switch (name)
                {
                    case "SystemID": return _SystemID;
                    case "S_Version": return _S_Version;
                    case "C_Ldap_Path": return _C_Ldap_Path;
                    case "C_Ldap_Domain": return _C_Ldap_Domain;
                    case "C_DisableIp": return _C_DisableIp;
                    case "C_LoginErrorDisableMinute": return _C_LoginErrorDisableMinute;
                    case "C_LoginErrorMaxNum": return _C_LoginErrorMaxNum;
                    case "C_UploadFileExt": return _C_UploadFileExt;
                    case "C_UploadSizeKb": return _C_UploadSizeKb;
                    case "C_UploadPath": return _C_UploadPath;
                    case "C_UpImgHeight": return _C_UpImgHeight;
                    case "C_UpImgWidth": return _C_UpImgWidth;
                    case "C_IPLookUrl": return _C_IPLookUrl;
                    case "C_RequestLog": return _C_RequestLog;
                    case "C_Enable_Ldap": return _C_Enable_Ldap;
                    case "C_HttpGZip": return _C_HttpGZip;
                    case "Site_Title": return _Site_Title;
                    case "Site_MetaKeywords": return _Site_MetaKeywords;
                    case "Site_MetaDescription": return _Site_MetaDescription;
                    case "Site_Copyright": return _Site_Copyright;
                    case "Site_Suffix": return _Site_Suffix;
                    case "Template_CacheEnable": return _Template_CacheEnable;
                    case "Template_CacheTime": return _Template_CacheTime;
                    default: return base[name];
                }
            }
            set
            {
                switch (name)
                {
                    case "SystemID": _SystemID = Convert.ToInt32(value); break;
                    case "S_Version": _S_Version = Convert.ToString(value); break;
                    case "C_Ldap_Path": _C_Ldap_Path = Convert.ToString(value); break;
                    case "C_Ldap_Domain": _C_Ldap_Domain = Convert.ToString(value); break;
                    case "C_DisableIp": _C_DisableIp = Convert.ToString(value); break;
                    case "C_LoginErrorDisableMinute": _C_LoginErrorDisableMinute = Convert.ToInt32(value); break;
                    case "C_LoginErrorMaxNum": _C_LoginErrorMaxNum = Convert.ToInt32(value); break;
                    case "C_UploadFileExt": _C_UploadFileExt = Convert.ToString(value); break;
                    case "C_UploadSizeKb": _C_UploadSizeKb = Convert.ToInt32(value); break;
                    case "C_UploadPath": _C_UploadPath = Convert.ToString(value); break;
                    case "C_UpImgHeight": _C_UpImgHeight = Convert.ToInt32(value); break;
                    case "C_UpImgWidth": _C_UpImgWidth = Convert.ToInt32(value); break;
                    case "C_IPLookUrl": _C_IPLookUrl = Convert.ToString(value); break;
                    case "C_RequestLog": _C_RequestLog = Convert.ToBoolean(value); break;
                    case "C_Enable_Ldap": _C_Enable_Ldap = Convert.ToBoolean(value); break;
                    case "C_HttpGZip": _C_HttpGZip = Convert.ToBoolean(value); break;
                    case "Site_Title": _Site_Title = Convert.ToString(value); break;
                    case "Site_MetaKeywords": _Site_MetaKeywords = Convert.ToString(value); break;
                    case "Site_MetaDescription": _Site_MetaDescription = Convert.ToString(value); break;
                    case "Site_Copyright": _Site_Copyright = Convert.ToString(value); break;
                    case "Site_Suffix": _Site_Suffix = Convert.ToString(value); break;
                    case "Template_CacheEnable": _Template_CacheEnable = Convert.ToBoolean(value); break;
                    case "Template_CacheTime": _Template_CacheTime = Convert.ToInt32(value); break;
                    default: base[name] = value; break;
                }
            }
        }
        #endregion

        #region 字段名
        /// <summary>取得系统信息表字段信息的快捷方式</summary>
        public class _
        {
            ///<summary>自动ID</summary>
            public static readonly FieldItem SystemID = Meta.Table.FindByName("SystemID");

            ///<summary>版本号</summary>
            public static readonly FieldItem S_Version = Meta.Table.FindByName("S_Version");

            ///<summary>域路径</summary>
            public static readonly FieldItem C_Ldap_Path = Meta.Table.FindByName("C_Ldap_Path");

            ///<summary>认证域</summary>
            public static readonly FieldItem C_Ldap_Domain = Meta.Table.FindByName("C_Ldap_Domain");

            ///<summary>禁止登入IP列表(每行一个IP,IP地址段以192.168.1.1-255)</summary>
            public static readonly FieldItem C_DisableIp = Meta.Table.FindByName("C_DisableIp");

            ///<summary>同一IP同一帐号登入出错,禁止登入时间(默认60)分,设定此值需要重启动应用程序</summary>
            public static readonly FieldItem C_LoginErrorDisableMinute = Meta.Table.FindByName("C_LoginErrorDisableMinute");

            ///<summary>同一IP登入允许出错次数默认为20</summary>
            public static readonly FieldItem C_LoginErrorMaxNum = Meta.Table.FindByName("C_LoginErrorMaxNum");

            ///<summary>上传文件扩展名 多个以,号分开</summary>
            public static readonly FieldItem C_UploadFileExt = Meta.Table.FindByName("C_UploadFileExt");

            ///<summary>上传文件大小(Kb为单位)</summary>
            public static readonly FieldItem C_UploadSizeKb = Meta.Table.FindByName("C_UploadSizeKb");

            ///<summary>上传文件路径</summary>
            public static readonly FieldItem C_UploadPath = Meta.Table.FindByName("C_UploadPath");

            ///<summary>上传图片缩图高度 默认120</summary>
            public static readonly FieldItem C_UpImgHeight = Meta.Table.FindByName("C_UpImgHeight");

            ///<summary>上传图片缩图宽度 默认 180</summary>
            public static readonly FieldItem C_UpImgWidth = Meta.Table.FindByName("C_UpImgWidth");

            ///<summary>IP地址查询链接</summary>
            public static readonly FieldItem C_IPLookUrl = Meta.Table.FindByName("C_IPLookUrl");

            ///<summary>是否启用户访问日志 默认为false</summary>
            public static readonly FieldItem C_RequestLog = Meta.Table.FindByName("C_RequestLog");

            ///<summary>是否启用域认证</summary>
            public static readonly FieldItem C_Enable_Ldap = Meta.Table.FindByName("C_Enable_Ldap");

            ///<summary>是否允许GZip压缩输出网页</summary>
            public static readonly FieldItem C_HttpGZip = Meta.Table.FindByName("C_HttpGZip");

            ///<summary>网站标题</summary>
            public static readonly FieldItem Site_Title = Meta.Table.FindByName("Site_Title");

            ///<summary>网站关键字</summary>
            public static readonly FieldItem Site_MetaKeywords = Meta.Table.FindByName("Site_MetaKeywords");

            ///<summary>网站描述</summary>
            public static readonly FieldItem Site_MetaDescription = Meta.Table.FindByName("Site_MetaDescription");

            ///<summary>网站版权</summary>
            public static readonly FieldItem Site_Copyright = Meta.Table.FindByName("Site_Copyright");

            ///<summary>网站页面后缀</summary>
            public static readonly FieldItem Site_Suffix = Meta.Table.FindByName("Site_Suffix");

            ///<summary>是否开启模版缓存</summary>
            public static readonly FieldItem Template_CacheEnable = Meta.Table.FindByName("Template_CacheEnable");

            ///<summary>模版缓存(秒)</summary>
            public static readonly FieldItem Template_CacheTime = Meta.Table.FindByName("Template_CacheTime");
        }
        #endregion
    }

    /// <summary>系统信息表接口</summary>
    public partial interface Isys_SystemInfo
    {
        #region 属性
        /// <summary>自动ID</summary>
        Int32 SystemID { get; set; }

        /// <summary>版本号</summary>
        String S_Version { get; set; }

        /// <summary>域路径</summary>
        String C_Ldap_Path { get; set; }

        /// <summary>认证域</summary>
        String C_Ldap_Domain { get; set; }

        /// <summary>禁止登入IP列表(每行一个IP,IP地址段以192.168.1.1-255)</summary>
        String C_DisableIp { get; set; }

        /// <summary>同一IP同一帐号登入出错,禁止登入时间(默认60)分,设定此值需要重启动应用程序</summary>
        Int32 C_LoginErrorDisableMinute { get; set; }

        /// <summary>同一IP登入允许出错次数默认为20</summary>
        Int32 C_LoginErrorMaxNum { get; set; }

        /// <summary>上传文件扩展名 多个以,号分开</summary>
        String C_UploadFileExt { get; set; }

        /// <summary>上传文件大小(Kb为单位)</summary>
        Int32 C_UploadSizeKb { get; set; }

        /// <summary>上传文件路径</summary>
        String C_UploadPath { get; set; }

        /// <summary>上传图片缩图高度 默认120</summary>
        Int32 C_UpImgHeight { get; set; }

        /// <summary>上传图片缩图宽度 默认 180</summary>
        Int32 C_UpImgWidth { get; set; }

        /// <summary>IP地址查询链接</summary>
        String C_IPLookUrl { get; set; }

        /// <summary>是否启用户访问日志 默认为false</summary>
        Boolean C_RequestLog { get; set; }

        /// <summary>是否启用域认证</summary>
        Boolean C_Enable_Ldap { get; set; }

        /// <summary>是否允许GZip压缩输出网页</summary>
        Boolean C_HttpGZip { get; set; }


        /// <summary>网站标题</summary>
        String Site_Title { get; set; }


        /// <summary>网站关键字</summary>
        String Site_MetaKeywords { get; set; }


        /// <summary>网站描述</summary>
        String Site_MetaDescription { get; set; }

        /// <summary>网站版权</summary>
        String Site_Copyright { get; set; }

        /// <summary>网站页面后缀</summary>
        String Site_Suffix { get; set; }

        /// <summary>是否开启模版缓存</summary>
        Boolean Template_CacheEnable { get; set; }

        /// <summary>模版缓存时间(秒)</summary>
        Int32 Template_CacheTime { get; set; }
        #endregion

        #region 获取/设置 字段值
        /// <summary>
        /// 获取/设置 字段值。
        /// </summary>
        /// <param name="name">字段名</param>
        /// <returns></returns>
        Object this[String name] { get; set; }
        #endregion
    }
}